import request from '@/utils/request'

export function getTypeList() {
  return request({
    url: '/type/list',
    method: 'get'
  })
}

export function addBook(data) {
  return request({
    url: '/book/add',
    method: 'post',
    data
  })
}
